package com.kakame.netbook.common.service;

import java.util.Date;

import com.kakame.netbook.common.constant.SysConstant;
import com.kakame.netbook.common.models.Attach;
import com.kakame.netbook.common.utils.fastdfs.base.StorePath;

public class AttachService {

	public void insert(StorePath f) {
		Attach file = new Attach();
		Date now = new Date();
		file.setFileGroup(f.getGroup()).setFilePath(f.getPath()).setCreateTime(now).setStatus(SysConstant.STATUS_NORMAL).save();
	}

}
